package com.dzt.androidframework.slide;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhan on 2017/2/6.
 */

public class SlideHelper {

	private List<ISlide> mISlides = new ArrayList<>();

	public void add(ISlide iSlide) {
		mISlides.add(iSlide);
	}

	public void remove(ISlide iSlide) {
		mISlides.remove(iSlide);
	}

	public void clear() {
		mISlides.clear();
	}

	public List<ISlide> getISlideList() {
		return mISlides;
	}

	public void slideOpen() {
		for (ISlide slide : mISlides) {
			slide.slideOpen();
		}
	}

	public void slideClose() {
		for (ISlide slide : mISlides) {
			slide.slideClose();
		}
	}
}
